/* 主页index.html的样式表 */
* {
    box-sizing: border-box;
}

/* 顶部导航条的容器 */
.topbar-wrapper {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #333;
}

/* 设置超链接的颜色 */
.topbar a {
    font-size: 12px;
    color: #b0b0b0;
    display: block;
}

.topbar a:hover {
    color: white;

}

/* 设置中间分割线 */
.topbar .line {
    font-size: 12px;
    color: #424242;
    margin: 0 8px;
}

/* 设置左侧的导航栏 */
.service,
.topbar li {
    float: left;
}

.app {
    position: relative;
}

/* 设置app下的小三角 */
.app-wrapper:hover>.app::after {
    content: '';
    /* 设置绝对定位 */
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    /* 设置四个方向的边框 */
    border: 7px solid transparent;
    /* 去除上边框 */
    border-top: none;
    /* 单独设置下边框的颜色 */
    border-bottom-color: #fff;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.app:hover .qrcode,
.app:hover::after {
    display: block;
    height: 148px;
}

/* .app-wrapper:hover>.app .qrcode {
    display: block;
} */

/* 设置下载APP的下拉 */
.app .qrcode {
    /* display: none; */
    position: absolute;
    left: -40px;
    width: 124px;
    height: 0;
    overflow: hidden;
    /* height: 148px; */
    line-height: 1;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .3);

    transition: height 0.3s;

    z-index: 9999;
}




/* 设置二维码图片 */
.app .qrcode img {
    width: 90px;
    margin: 17px;
    margin-bottom: 10px;
}

/* 设置二维码中的文字 */
.app .qrcode span {
    font-size: 14px;
    color: #000;
}

/* 设置右侧导航栏 */
.shop-cart,
.user-info {
    float: right;
}

.shop-cart {
    margin-left: 26px;
}

.shop-cart .icon-height {
    height: 40px;
}

/* 设置购物车的样式 */
.shop-cart a {
    width: 120px;
    background-color: #424242;
    text-align: center;
}

.shop-cart i {
    margin-right: 2px;
}

.shop-cart:hover a {
    background-color: #fff;
    color: #ff6700;
}


.cart-tips span {
    font-size: 12px;
    color: #424242;
}

.shop-cart:hover .cart-tips {
    display: block;
    height: 100px;
}

.shop-cart .icon-height a {
    height: 40px;
    display: inline-block;
}

/* 设置tips的下拉 */
.shop-cart .cart-tips {
    position: relative;
    left: -196px;
    line-height: 1;
    width: 316px;
    height: 0;
    line-height: 100px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 10px 10px rgba(0, 0, 0, .15);
    border-top: none;
    transition: height 0.3s;
    z-index: 31;
}


.header-wrapper {
    position: relative;
}

/* 设置中间的header */
.header {
    height: 100px;
}

/* 设置logo的h1 */
.header .logo {
    float: left;
    margin-top: 22px;
    width: 55px;
    height: 55px;
    position: relative;
    overflow: hidden;
    /* 隐藏logo中的文字 */
    text-indent: -999999999px;
    margin-right: 7px;
}

/* 统一设置logo的超链接 */
.header .logo a {
    position: absolute;
    width: 55px;
    height: 55px;
    left: 0;
    background-color: #ff6700;
    background-image: url(../img/mi-logo.png);
    background-position: center;
    transition: left 0.3s;
}

/* 设置home图片 */
.header .logo .home {
    left: -55px;
    background-image: url(../img/mi-home.png);
}

/*设置两个图标的移动 */
.header .logo:hover .mi {
    left: 55px;

}

.header .logo:hover .home {
    left: 0;
}

/* 设置中间的导航条 */
.header .nav-wrapper {
    float: left;
    margin-left: 7px;
    width: 850px;
}

/* 设置导航条 */
.header .nav {
    /* background-color: #bbffaa; */
    height: 100px;
    line-height: 100px;
    margin-left: 58px;
}

/* 设置导航条中的li */


.nav>li {
    float: left;
}

.all-goods-wrapper {
    position: relative;
    /* background-color: red; */

}

/* 设置左侧的导航条的样式 */
.left-menu {
    width: 234px;
    height: 460px;
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, .6);
    position: absolute;
    z-index: 999;
    left: -127px;
    line-height: 1px;
}

ul.left-menu li a {
    display: block;
    height: 42px;
    line-height: 42px;
    color: white;
    margin-right: 0;
}

.left-menu a i {
    float: right;
    line-height: 42px;
}

.nav-wrapper li a {
    display: block;
    font-size: 14px;
    margin-right: 20px;
}

.nav-wrapper li a:hover {
    color: #ff6700;
}

/* 隐藏全部商品 */
.all-goods {
    visibility: hidden;
}

.nav .goods-info {
    height: 0px;
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 100px;
    left: 0;
    transition: height 0.3s;
    z-index: 9999;
}

.nav .show-goods:hover~.goods-info,
.goods-info:hover {
    height: 228px;
    border-top: 1px solid rgb(224, 224, 224);
    box-shadow: 0 5px 3px rgba(0, 0, 0, .15);
}

/* 搜索框的容器 */
.search-wrapper {
    width: auto;
    height: 50px;
    margin-top: 25px;
    /* background-color: red; */
    float: right;
    /* border: 1px solid rgb(224, 224, 224); */
    display: block;
    outline: none;
}

.search-wrapper .search-inp {
    float: left;
    border: 1px solid #e0e0e0;
    height: 48px;
    width: 222px;
    padding: 0 10px;
    border-radius: 0;
    position: relative;
    top: 0;
    font-size: 14px;
    line-height: 48px;
    box-sizing: content-box;
    outline: none;
}

.search-wrapper .search-inp:focus {
    border: 1px solid #ff6700;
}

.search-wrapper .search-inp:focus~.search-btn {
    border: 1px solid #ff6700;
}

.search-wrapper .search-btn {
    /* float: left; */
    border: 1px solid #e0e0e0;
    outline: 0;
    height: 50px;
    width: 52px;
    box-sizing: border-box;
    border-radius: 0;
    position: relative;
    top: 0;
    font-size: 24px;
    line-height: 24px;
    background-color: #fff;
    color: #616161;
}

.search-wrapper .search-btn:hover {
    background-color: #ff6700;
    color: #fff;
}


/* 设置banner */
.banner{
    position: relative;
    height: 460px;
}
.banner .img-list li{
    position: absolute;
}
.banner img{
    width: 100%;
    vertical-align: top;
}

/* 设置5个导航点 */
.pointer{
    position: absolute;
    bottom: 22px;
    right: 35px;
}

.pointer a{
    float: left;
    width: 10px;
    height: 10px;
    border:2px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background-color:rgba(0, 0, 0, 0.4);
    margin-left: 6px;
}

.pointer a:hover,
.pointer a.active{
    background-color: rgba(255, 255, 255, .4);
    border-color: rgba(0, 0, 0, 0.4);
}

/* 设置两个箭头 */
.prev-next a{
    width: 41px;
    height: 69px;
    background-image: url(../img/icon-slides.png);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;

}

.prev-next .prev{
    left: 234px;
    background-position: -84px 0;
}
.prev-next .prev:hover{
    background-position: 0 0;
}
.prev-next .next{
    right: 0;
    background-position: -125px 0;
}
.prev-next .next:hover{
    background-position: -42px 0;
}











